//
//  VSHttpRequest.m
//  Vstore
//
//  Created by Apple on 15/1/7.
//  Copyright (c) 2015年 LITB. All rights reserved.
//

#import "VSHttpRequest.h"
#import "NSObject+ObjectMap.h"


@implementation VSHttpRequest

- (NSString *)url
{
    return [NSString stringWithFormat:@"%@%@", [self baseServerUrl], [self subUri]];
}

- (NSDictionary *)toParameters
{
    return [self toDictionary];
}

- (NSDictionary *)toDictionary
{
    return [self objectDictionary];
}

#pragma mark - VSHttpRequestProtocol

- (NSString *)baseServerUrl
{
    [self doesNotRecognizeSelector:_cmd];
    return nil;
}

- (NSString *)subUri
{
    [self doesNotRecognizeSelector:_cmd];
    return nil;
}

@end
